package vip.xiaonuo.facedoor.modular.visitor.vo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

@Data
@Accessors(chain = true)
public class VisitorImportVO {

    @Excel(name = "名称*", width = 20)
    private String name;

    @Excel(name = "性别", replace = {"男_1", "女_2"}, width = 20)
    private Integer sex;

    @Excel(name = "手机号", width = 20)
    private String tel;

    @Excel(name = "结束访问时间*", databaseFormat = "yyyy-MM-dd HH:mm:ss", format = "yyyy-MM-dd HH:mm:ss", width = 20)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date visitEndDate;

    @Excel(name = "开始访问时间*(年-月-日 时分秒)", databaseFormat = "yyyy-MM-dd HH:mm:ss", format = "yyyy-MM-dd HH:mm:ss", width = 20)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date visitStartDate;

    @Excel(name = "身份证照片", width = 20, type = 2, height = 30)
    private String identityPhoto;

    @Excel(name = "核酸检测报告照片", width = 20, type = 2, height = 30)
    private String detectionPhoto;

    @Excel(name = "人脸比对照片", width = 20, type = 2, height = 30)
    private String photo;

    @Excel(name = "邀请人姓名", width = 20)
    private String inviterName;

    @Excel(name = "身份证号", width = 20)
    private String idCard;

    @Excel(name = "部门", width = 20)
    private String orgName;

    @Excel(name = "部门编码*", width = 20)
    private String orgCode;

    @Excel(name = "来源", replace = {"后台录入_1", "小程序_2","访客机_3"}, width = 20)
    private Integer source;

    @Excel(name = "审核状态",replace = {"审批通过_1", "审核拒绝_2","未审批_3","已过期_0","已经离场_4"}, width = 20)
    private Integer status;

    @Excel(name = "到访地址", width = 20)
    private String visitorAddress;

    @Excel(name = "邀请人手机号码", width = 20)
    private String inviterPhone;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "离场时间")
    @Excel(name = "离场时间", databaseFormat = "yyyy-MM-dd HH:mm:ss", format = "yyyy-MM-dd HH:mm:ss", width = 20)
    private Date leaveTime;

    @ApiModelProperty(value = "车牌号码")
    @Excel(name = "车牌号码", width = 20)
    private String carNum;

    @ApiModelProperty(value = "携带物品")
    @Excel(name = "携带物品", width = 20)
    private String carryItems;

    @ApiModelProperty(value = "质押证件")
    @Excel(name = "质押证件", width = 20)
    private String pledgeCertificate;

    @ApiModelProperty(value = "备注信息")
    @Excel(name = "备注信息", width = 20)
    private String remarks;

    @ApiModelProperty(value = "是否已经发放凭证")
    @Excel(name = "是否已经发放凭证",replace = {"是_0", "否_1"}, width = 20)
    private Integer issuanceOfVouchers;

    @ApiModelProperty(value = "到访备注")
    @Excel(name = "到访备注", width = 20)
    private String visitorRemake;
}
